package com.woniu.demo;

import com.woniu.Person;

public class Test2 {
    public static void main(String[] args) {
        BeanFactory2 beanFactory = new BeanFactory2();
        Person person = (Person) beanFactory.getBean("chinese");
        person.eat();
    }
}
